﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.DAL;
using AnyOffice.Components;
namespace AnyOffice.general.news.manage
{
    public partial class type_delete : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                int typeId = (Request.QueryString["type_id"] == null) ? 0 : int.Parse(Request.QueryString["type_id"].ToString());
                new NewsTypeDao().Delete(base.Conn, typeId);
                base.CloseConn();
                Response.Redirect("type.aspx");
            }
        }

 

 

    }
}
